home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 6230 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Initialising structure members - help please!
  5. Date: 23 Feb 96 02:03:34 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.825041014@rscernix>
  8. References: <4gb8hn$3m8@news.mistral.co.uk> <4gflijINN8hi@keats.ugrad.cs.ubc.ca> <TANMOY.96Feb22091936@qcd.lanl.gov>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <TANMOY.96Feb22091936@qcd.lanl.gov> tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) writes:
  13.  
  14. >In article <4gflijINN8hi@keats.ugrad.cs.ubc.ca> c2a192@ugrad.cs.ubc.ca
  15. >(Kazimir Kylheku) writes: 
  16. ><snip>
  17. >cKK: Your compiler's message is not strictly correct. The left side of the
  18. >cKK: expression _is_ an lvalue, because it refers to an object, and it is
  19. >cKK: addressable. But it is not a _modifiable_ lvalue. Like an array,
  20. >a function is 
  21. >cKK: also an lvalue, but it isn't modifiable:
  22. >cKK: 
  23. >cKK:     [Assignment Expressions] require an lvalue as a left operand, and the
  24. >cKK:     lvalue must be modifiable: it must not be an array, and must not have
  25. >cKK:     an incomplete type, or be a function. (K&R2 A7.17)
  26. >
  27. >Hmmm... my quoting style is now less readable but hopefully less
  28. >confusing? 
  29.  
  30. It looks awful.  Why don't you quote like anybody else?  If you have some
  31. stupid posting software which restricts the amount of quoted text, simply
  32. use ':' or '#' instead of the standard '>'.  It will be considerably less
  33. confusing.
  34.  
  35. Just my $0.02,
  36. Dan
  37. --
  38. Dan Pop
  39. CERN, CN Division
  40. Email: danpop@mail.cern.ch 
  41. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  42.